package com.microservice.salmon.db.entities;

import java.util.Date;
import javax.persistence.*;

@Table(name = "t_goods_attributes")
public class GoodsAttribute {
    /**
     * 自增ID
     */
    @Id
    private Integer id;

    /**
     * 店铺ID
     */
    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 商品ID
     */
    @Column(name = "goods_id")
    private Integer goodsId;

    /**
     * 属性名称ID
     */
    @Column(name = "attr_id")
    private Integer attrId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 属性值
     */
    @Column(name = "attr_val")
    private String attrVal;

    /**
     * 获取自增ID
     *
     * @return id - 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置自增ID
     *
     * @param id 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取店铺ID
     *
     * @return shop_id - 店铺ID
     */
    public Integer getShopId() {
        return shopId;
    }

    /**
     * 设置店铺ID
     *
     * @param shopId 店铺ID
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取商品ID
     *
     * @return goods_id - 商品ID
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 设置商品ID
     *
     * @param goodsId 商品ID
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取属性名称ID
     *
     * @return attr_id - 属性名称ID
     */
    public Integer getAttrId() {
        return attrId;
    }

    /**
     * 设置属性名称ID
     *
     * @param attrId 属性名称ID
     */
    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取属性值
     *
     * @return attr_val - 属性值
     */
    public String getAttrVal() {
        return attrVal;
    }

    /**
     * 设置属性值
     *
     * @param attrVal 属性值
     */
    public void setAttrVal(String attrVal) {
        this.attrVal = attrVal;
    }
}